ArchPcode: Report no program counter for a language that declares none. - #367
ArchPcode: Report no program counter for a language that declares none.#367zardus wants to merge 1 commit into
Conversation
|
THIS MESSAGE WAS GENERATED BY AN AUTOMATED PROCESS Validation record for head
Note: angr/angr#6804 no longer asserts Caveats: the complete local workspace gate was not rerun on this head — a corpus sweep holds the machine — so the local evidence is the focused runs above plus the 187-architecture comparison. |
|
Corpus decompilation diffs can be found at angr/dec-snapshots@master...angr/archinfo_367 |
Dalvik and the DATA languages carry no programcounter tag and no register that
could serve as one, so ArchPcode pointed ip_offset at 0x80000000, an offset no
register occupied. Everything that maps that offset or the name back to a
register failed: registers["ip"] and register_names[ip_offset] raised KeyError,
get_register_by_name("ip") returned None, and translate_register_name returned
the decimal offset.
Leave ip_offset unset instead. Arch already declares it optional, and angr
already guards sp_offset the same way. Of the 187 sleigh languages pypcode
4.0.1.dev0 ships, the 15 that declare no program counter lose the invented
offset and nothing else moves; the other 172 are identical field for field.
The type-checking import of pypcode resolves the four "possibly unbound"
diagnostics the module carried, which the CI typecheck scores against the file.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
a5f11be to
6196611
Compare
THIS MESSAGE WAS GENERATED BY AN AUTOMATED PROCESS
Dalvik and the DATA sleigh languages declare no program counter and have no register that could serve as one, so
ArchPcodepointedip_offsetat0x80000000, an offset no register occupied.registers["ip"]andregister_names[ip_offset]raisedKeyError,get_register_by_name("ip")returnedNone, andtranslate_register_namereturned the decimal offset.ip_offsetis now left unset for those languages.Archalready declares it optional, and of the 187 languages pypcode ships only those 15 change: they lose the invented offset, and no other field of any language moves.The regression covers both affected families,
Dalvik:LE:32:DEX_NougatandDATA:LE:64:default.Raised in review of angr/angr#6804, which makes angr tolerate the missing register and carries the end-to-end regression.
Validation: #367 (comment)